package cn.jeeweb.modules.web.labor.content;

import cn.jeeweb.modules.sys.entity.User;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

public class HuLaborContent {
    /**主键*/
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**创建者*/
    @TableField(value = "create_by",el="createBy.id",fill = FieldFill.INSERT)
    private User createBy;
    /**更新者*/
    @TableField(value = "update_by",el="updateBy.id",fill = FieldFill.UPDATE)
    private User updateBy;
    /**修改时间*/
    @TableField(value = "update_date",fill = FieldFill.UPDATE)
    private Date updateDate;
    /**创建时间*/
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    private Date createDate;
    /**删除标记*/
    @TableField(value = "del_flag")
    private String delFlag;
    /**姓名*/
    @TableField(value = "account_name")
    private String accountName;
    /**性别*/
    @TableField(value = "sex")
    private String sex;
    /**照片*/
    @TableField(value = "photo")
    private String photo;
    /**年龄*/
    @TableField(value = "age")
    private Integer age;
    /**出生年月*/
    @TableField(value = "birthday")
    private Date birthday;
    /**身份证号*/
    @TableField(value = "number_id")
    private String numberId;
    /**民族*/
    @TableField(value = "nation")
    private String nation;
    /**家庭住址*/
    @TableField(value = "home_address")
    private String homeAddress;
    /**户籍所在*/
    @TableField(value = "household")
    private String household;
    /**政治面貌*/
    @TableField(value = "politica")
    private String politica;
    /**学历*/
    @TableField(value = "education")
    private String education;
    /**健康状况（选择）*/
    @TableField(value = "headlthy")
    private String headlthy;
    /**备注*/
    @TableField(value = "remarks")
    private String remarks;
    /**县*/
    @TableField(value = "town_label")
    private String townLabel;
    /**town*/
    @TableField(value = "town_name")
    private String townName;

    @TableField(value="village")
    private String village;

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    /**机构*/
    @TableField(value = "organization_id")
    private String organizationId;

    /**
     * 获取  id
     *@return: String  主键
     */
    public String getId(){
        return this.id;
    }

    /**
     * 设置  id
     *@param: id  主键
     */
    public void setId(String id){
        this.id = id;
    }
    /**
     * 获取  createBy
     *@return: User  创建者
     */
    public User getCreateBy(){
        return this.createBy;
    }

    /**
     * 设置  createBy
     *@param: createBy  创建者
     */
    public void setCreateBy(User createBy){
        this.createBy = createBy;
    }
    /**
     * 获取  updateBy
     *@return: User  更新者
     */
    public User getUpdateBy(){
        return this.updateBy;
    }

    /**
     * 设置  updateBy
     *@param: updateBy  更新者
     */
    public void setUpdateBy(User updateBy){
        this.updateBy = updateBy;
    }
    /**
     * 获取  updateDate
     *@return: Date  修改时间
     */
    public Date getUpdateDate(){
        return this.updateDate;
    }

    /**
     * 设置  updateDate
     *@param: updateDate  修改时间
     */
    public void setUpdateDate(Date updateDate){
        this.updateDate = updateDate;
    }
    /**
     * 获取  createDate
     *@return: Date  创建时间
     */
    public Date getCreateDate(){
        return this.createDate;
    }

    /**
     * 设置  createDate
     *@param: createDate  创建时间
     */
    public void setCreateDate(Date createDate){
        this.createDate = createDate;
    }
    /**
     * 获取  delFlag
     *@return: String  删除标记
     */
    public String getDelFlag(){
        return this.delFlag;
    }

    /**
     * 设置  delFlag
     *@param: delFlag  删除标记
     */
    public void setDelFlag(String delFlag){
        this.delFlag = delFlag;
    }
    /**
     * 获取  accountName
     *@return: String  姓名
     */
    public String getAccountName(){
        return this.accountName;
    }

    /**
     * 设置  accountName
     *@param: accountName  姓名
     */
    public void setAccountName(String accountName){
        this.accountName = accountName;
    }
    /**
     * 获取  sex
     *@return: String  性别
     */
    public String getSex(){
        if(this.sex.equals("1")){

            return "男";
        }
        return "女";
    }

    /**
     * 设置  sex
     *@param: sex  性别
     */
    public void setSex(String sex){

        this.sex = sex;
    }
    /**
     * 获取  photo
     *@return: String  照片
     */
    public String getPhoto(){
        return this.photo;
    }

    /**
     * 设置  photo
     *@param: photo  照片
     */
    public void setPhoto(String photo){
        this.photo = photo;
    }
    /**
     * 获取  age
     *@return: Integer  年龄
     */
    public Integer getAge(){
        return this.age;
    }

    /**
     * 设置  age
     *@param: age  年龄
     */
    public void setAge(Integer age){
        this.age = age;
    }
    /**
     * 获取  birthday
     *@return: Date  出生年月
     */
    public Date getBirthday(){
        return this.birthday;
    }

    /**
     * 设置  birthday
     *@param: birthday  出生年月
     */
    public void setBirthday(Date birthday){
        this.birthday = birthday;
    }
    /**
     * 获取  numberId
     *@return: String  身份证号
     */
    public String getNumberId(){
        return this.numberId;
    }

    /**
     * 设置  numberId
     *@param: numberId  身份证号
     */
    public void setNumberId(String numberId){
        this.numberId = numberId;
    }
    /**
     * 获取  nation
     *@return: String  民族
     */
    public String getNation(){
        return this.nation;
    }

    /**
     * 设置  nation
     *@param: nation  民族
     */
    public void setNation(String nation){
        this.nation = nation;
    }
    /**
     * 获取  homeAddress
     *@return: String  家庭住址
     */
    public String getHomeAddress(){
        return this.homeAddress;
    }

    /**
     * 设置  homeAddress
     *@param: homeAddress  家庭住址
     */
    public void setHomeAddress(String homeAddress){
        this.homeAddress = homeAddress;
    }
    /**
     * 获取  household
     *@return: String  户籍所在
     */
    public String getHousehold(){
        return this.household;
    }

    /**
     * 设置  household
     *@param: household  户籍所在
     */
    public void setHousehold(String household){
        this.household = household;
    }
    /**
     * 获取  politica
     *@return: String  政治面貌
     */
    public String getPolitica(){
        switch (Integer.parseInt(this.politica)){
            case 1:
                return "其他";
            case 2:
                return "团员";
            case 3:
                return "党员";
        }
        return this.politica;
    }
    /**
     * 设置  politica
     *@param: politica  政治面貌
     */
    public void setPolitica(String politica){

        this.politica = politica;
    }
    /**
     * 获取  education
     *@return: String  学历
     */
    public String getEducation(){
        switch (Integer.parseInt(this.education)){
            case 1:
                return "高中";
            case 2:
                return "专科";
            case 3:
                return "本科";
            case 4:
                return "研究生";
            case 5:
                return "博士";

        }
        return this.education;
    }

    /**
     * 设置  education
     *@param: education  学历
     */
    public void setEducation(String education){
        this.education = education;
    }
    /**
     * 获取  headlthy
     *@return: String  健康状况（选择）
     */
    public String getHeadlthy(){

        switch(Integer.parseInt(this.headlthy)){
            case 1:
                return "健康";
            case 2:
                return "亚健康";

        }
        return this.headlthy;
    }

    /**
     * 设置  headlthy
     *@param: headlthy  健康状况（选择）
     */
    public void setHeadlthy(String headlthy){
        this.headlthy = headlthy;
    }
    /**
     * 获取  remarks
     *@return: String  备注
     */
    public String getRemarks(){
        return this.remarks;
    }

    /**
     * 设置  remarks
     *@param: remarks  备注
     */
    public void setRemarks(String remarks){
        this.remarks = remarks;
    }

    public String getTownLabel() {
        return townLabel;
    }

    public void setTownLabel(String townLabel) {
        this.townLabel = townLabel;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }
}
